package world.criver.h50909.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import world.criver.h50909.dao.daoDelete;
import world.criver.h50909.entity.entName;
import world.criver.h50909.response.resStatus;
import world.criver.h50909.service.serDelete;

@RestController
@RequestMapping("/delete")
public class conDelete implements daoDelete {
    @Autowired
    private serDelete serDelete;
    @Override
    @PostMapping("/equipment")
    public resStatus equipment(@RequestBody entName info) {
        return serDelete.equipment(info);
    }

    @Override
    @PostMapping("/model")
    public resStatus model(@RequestBody entName info) {
        return serDelete.model(info);
    }
}
